package com.example.entity.mysql;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 车间表
 * </p>
 *
 * @author LiangPandeng
 * @since 2024-04-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Workshop implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 车间ID
     */
    @TableId(value = "workshop_id", type = IdType.AUTO)
    private Long workshopId;

    /**
     * 车间编码
     */
    @TableField(value = "workshop_code")
    private String workshopCode;

    /**
     * 车间名称
     */
    @TableField(value = "workshop_name")
    private String workshopName;

    /**
     * 面积
     */
    private Double area;

    /**
     * 负责人
     */
    private String charge;

    /**
     * 是否启用
     */
    @TableField(value = "enable_flag")
    private String enableFlag;

    /**
     * 备注
     */
    private String remark;

    /**
     * 预留字段1
     */
    private String attr1;

    /**
     * 预留字段2
     */
    private String attr2;

    /**
     * 预留字段3
     */
    private Integer attr3;

    /**
     * 预留字段4
     */
    private Integer attr4;

    /**
     * 创建者
     */
    @TableField(value = "create_by")
    private String createBy;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private LocalDateTime createTime;

    /**
     * 更新者
     */
    @TableField(value = "update_by")
    private String updateBy;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private LocalDateTime updateTime;


}
